#!/usr/bin/env fish

set files *.php modules/**.* phiction/**.* post-commit stat static/css/index.css static/js/index.js

function author_per_line
    #echo $files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p'
    echo $files | xargs -n1 git blame --line-porcelain | sed -n 's/^author .*/- TOTAL -/p'
end

author_per_line | sort | uniq -c | sort -nr

